package com.service;

import com.dao.UserDao;

public class UserServiceImpl implements UserService {

    public UserServiceImpl() {
        System.out.println("userservice 构造函数----");
    }

    //@Autowired  //1.我把这个知识归类到注解，不算，可以完成依赖注入
    private UserDao dao;

    public UserDao getDao() {
        return dao;
    }

    public void setDao(UserDao dao) {
        this.dao = dao;
    }

    @Override
    public void insert() {
        System.out.println("insert in userservice impl---");
        dao.insert();
    }
}
